package com.irdstudio.efp.esb.api.bean.yx;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.irdstudio.basic.framework.core.annotation.BeanMapKey;
import com.irdstudio.basic.framework.core.annotation.DicType;
import com.irdstudio.efp.esb.api.common.GroupeInterface;
import com.irdstudio.efp.esb.api.common.GroupeInterface.bd;
import com.irdstudio.efp.esb.common.constant.nls.NlsCertTpEnum;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 需求编号：【已占用额度查询】
 * 开发人员：【chenxuan】
 * 创建/修改日期：【2019/8/13】
 * 修改描述：
 * @Param
 * @return
 **/
@JsonPropertyOrder(alphabetic = true)
public class ReqPreOccQueryBean {
	@BeanMapKey("CertTp")
	@JsonProperty("CertTp")
	@NotNull(groups= {GroupeInterface.bd.class})
	@NotEmpty(groups= {GroupeInterface.bd.class})
	@Length(max = 10,groups= {GroupeInterface.bd.class})
	@DicType(dicType = NlsCertTpEnum.class, method = "getValue",groups= {GroupeInterface.ms.class,bd.class})
	private String CertTp;// 证件类型

	@BeanMapKey("CertNo")
	@JsonProperty("CertNo")
	@NotNull(groups= {GroupeInterface.ms.class,bd.class})
	@NotEmpty(groups= {GroupeInterface.ms.class,bd.class})
	@Length(max = 18,groups= {GroupeInterface.bd.class})
	private String CertNo;// 证件号码

	public String getCertTp() {
		return CertTp;
	}

	public void setCertTp(String certTp) {
		CertTp = certTp;
	}

	public String getCertNo() {
		return CertNo;
	}

	public void setCertNo(String certNo) {
		CertNo = certNo;
	}
}
